#include <stdio.h>

int
main( int * argc, char * argv[]) {
	int result = factorial(4);
	printf("result = %d\n",result);
	return 0;
}

int factorial( int start) {
	int result = 0;
	if( start == 0 ) {
		return 1;
	} else {
		result = factorial( start - 1 );
		result = start * result;
		return result;
	}
}